import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useAppStore = defineStore('appStore', () => {
  // 字典列表
  const dictList = ref([
    {
      code: "URL",
      extend: null,
      id: 232,
      name: "http://10.100.50.67:8000",
      sort: 0,
      typeCode: "WEB_RTC_URL"
    },
    {
      code: 'ALL_EQUIPMENT',
      name: '全部设备',
      typeCode: 'EQUIPMENT'
    },
    {
      code: 'WEBSITE',
      name: '站内消息',
      typeCode: 'ALERT_PUSH'
    },
    {
      code: 'WX_WORK_APPLICATION',
      name: '企业微信应用',
      typeCode: 'ALERT_PUSH'
    }
  ]);
  // TODO: 放置请求字典数据
  const getDictListAction = async () => {

  }

  return {
    dictList,
    getDictListAction
  }
})
